#include <iostream>
#include <string>
using namespace std;
int main()
{
    string a = "", b = "";
    long length = 0xFFFF;
    do
    {
        cin >> a;
        if (a.length() < length)
        {
            length = a.length();
            b = a;
        }
    } while (a[a.length() - 1] != '.');
    if (b[b.length() - 1] == '.')
    {
        b[b.length() - 1] = '\0';
    }
    cout << b;
    return 0;
}